Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

work on whois regex #246

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

work on whois regex #246

wants to merge 2 commits into from

Conversation

chn42
Copy link

@chn42 chn42 commented Sep 18, 2024

to also work on fields with a - in it

for example the template for RIPE aut-num object. fields like mp-import, which aren't catched by something else like regexp=(Registry )?[Aa]dmin([\w\s\S])*:, just have default color

 aut-num:        [mandatory]  [single]     [primary/lookup key]
 as-name:        [mandatory]  [single]     [ ]
 descr:          [optional]   [multiple]   [ ]
 member-of:      [optional]   [multiple]   [inverse key]
 import-via:     [optional]   [multiple]   [ ]
 import:         [optional]   [multiple]   [ ]
 mp-import:      [optional]   [multiple]   [ ]
 export-via:     [optional]   [multiple]   [ ]
 export:         [optional]   [multiple]   [ ]
 mp-export:      [optional]   [multiple]   [ ]
 default:        [optional]   [multiple]   [ ]
 mp-default:     [optional]   [multiple]   [ ]
 remarks:        [optional]   [multiple]   [ ]
 org:            [optional]   [single]     [inverse key]
 sponsoring-org: [optional]   [single]     [inverse key]
 admin-c:        [mandatory]  [multiple]   [inverse key]
 tech-c:         [mandatory]  [multiple]   [inverse key]
 abuse-c:        [optional]   [single]     [inverse key]
 status:         [generated]  [single]     [ ]
 notify:         [optional]   [multiple]   [inverse key]
 mnt-by:         [mandatory]  [multiple]   [inverse key]
 created:        [generated]  [single]     [ ]
 last-modified:  [generated]  [single]     [ ]
 source:         [mandatory]  [single]     [ ]

also within for example this object type there might be lines after mp-import starting with \s, therefor added the check for end-of-line or \s

also added support for IPv4 and IPv6 copied from conf.ip

@chn42 chn42 changed the title add - to "field" "bold white" regex work on whois regex Sep 18, 2024
* work with - in field name
* work with IPv6 addresses starting after \s
@chn42 chn42 force-pushed the master branch 2 times, most recently from 77f3607 to 3d3e38e Compare September 18, 2024 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant